﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using STLGROUP.Layers.Presentations.FormBase;
using STLGROUP.Layers.Common;

namespace QuanLyBanHang
{
    public partial class frmModule : frmCatalogBase
    {
        #region Constructors

        public frmModule()
        {
            InitializeComponent();
        }

        #endregion

        #region Protected methods

        protected override void LoadData()
        {
            this._bindingSource.DataSource = Cache.Context.ACL_Module;
            this.dgvModule.DataSource = _bindingSource;

            base.LoadData();
        }

        protected override void AddDataBinding()
        {
            txtIDModule.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "IDModule", true);
            txtMaModule.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "MaModule", true);
            txtTenModule.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "TenModule", true);

            base.AddDataBinding();
        }

        #endregion

    }
}
